package com.gyj.service;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.gyj.mapper.ProfileMapper;
import com.gyj.model.Profile;

@Service
public class ProfileService {
	@Resource
	private ProfileMapper profileMapper;

	public void save(Profile p) {
		profileMapper.insert(p);
	}

	public List<Profile> getProfileList() {
		return profileMapper.selectList(null);
	}

}
